<!DOCTYPE HTML>
<html lang="zh-CN" class="ax-vertical-centered" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>图书馆管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/css/bootstrap-theme.min.css}">
    <link rel="stylesheet" th:href="@{/css/bootstrap-admin-theme.css}">
    <link rel="stylesheet" th:href="@{/css/bootstrap-admin-theme.css}">
    <script th:src="@{/jQuery/jquery-3.1.1.min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/js/bootstrap-dropdown.min.js}"></script>
    <script th:src="@{/js/getBorrowInfo.js}"></script>
</head>


<script src="../js/jquery.min.js"></script>
<script src="../static/js/bootstrap.min.js"></script>


<body class="bootstrap-admin-with-small-navbar">
<nav class="navbar navbar-inverse navbar-fixed-top bootstrap-admin-navbar bootstrap-admin-navbar-under-small"
     role="navigation">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="collapse navbar-collapse main-navbar-collapse">
                    <a class="navbar-brand" href="/manage/home"><strong>欢迎使用图书馆管理系统</strong></a>
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a href="#" role="button" class="dropdown-toggle" data-hover="dropdown">
                                <i class="glyphicon glyphicon-user"></i> 欢迎您，<span th:text="${session.admin.username}"></span>
                                <i class="caret"></i></a>

                            <ul class="dropdown-menu">
                                <li><a href="#updateinfo" data-toggle="modal">个人资料</a></li>
                                <li role="presentation" class="divider"></li>
                                <li><a href="#updatepwd" data-toggle="modal">修改密码</a></li>
                                <li role="presentation" class="divider"></li>
                                <li><a href="/admin/quit">退出</a></li>
                            </ul>

                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</nav>
<input type="hidden" th:value="${msg}" id="msg"/>
<div class="container">
    <div class="row">
        <div class="col-md-2 bootstrap-admin-col-left">
            <ul class="nav navbar-collapse collapse bootstrap-admin-navbar-side">
                <li>
                    <a href="/manage/bookManage"><i
                            class="glyphicon glyphicon-chevron-right"></i> 图书管理</a>
                </li>
                <li>
                    <a href="/manage/bookTypeManage"><i
                            class="glyphicon glyphicon-chevron-right"></i> 图书分类管理</a>
                </li>


                <li>
                    <a href="/manage/borrowSearch"><i
                            class="glyphicon glyphicon-chevron-right"></i> 借阅查询</a>
                </li>


                <li>
                    <a href="/manage/adminManage"><i
                            class="glyphicon glyphicon-chevron-right"></i> 管理员管理</a>
                </li>

                <li>
                    <a href="/manage/readerManage"><i
                            class="glyphicon glyphicon-chevron-right"></i> 读者管理</a>
                </li>




            </ul>
        </div>

        <div class="col-md-10">
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default bootstrap-admin-no-table-panel">
                        <div class="panel-heading">
                            <div class="text-muted bootstrap-admin-box-title">教室管理</div>
                        </div>
                        <div class="bootstrap-admin-no-table-panel-content bootstrap-admin-panel-content collapse in">
                            <form class="form-horizontal"
                                  action="/borrowInfo/borrowInfo_select" method="post">
                                <div class="row">
                                    <div class="col-lg-2 form-group">
                                        <button type="submit" class="btn btn-primary" id="btn_borrow">查看未审核记录</button>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-lg-2 form-group">
                                        <button type="submit" class="btn btn-primary" id="btn_borrow">查看已审核记录</button>
                                    </div>
                                </div>



                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <table id="data_list" class="table table-hover table-bordered" cellspacing="0" width="100%">
                        <thead>
                        <tr>
                            <th>报修记录号</th>
                            <th>教室号</th>
                            <th>教室区域</th>
                            <th>维修师傅</th>
                            <th>报修内容</th>
                            <th>报修照片</th>
                            <th>报修进度</th>
                            <th>操作</th>
                        </tr>
                        </thead>



                        <tbody>
                        <td>01</td>
                        <td>105</td>
                        <td>南区</td>
                        <td>张留年</td>
                        <td>灯泡坏了</td>
                        <td><a>查看照片</a></td>
                        <td>待处理</td>
                        <td>
                            <button type="button" class="btn btn-success btn-xs" data-toggle="modal"
                                    data-target="#findBackModal" >优先处理</button>
                            <button type="button" class="btn btn-danger btn-xs" data-toggle="modal"
                                    data-target="#findBackModal" >取消处理</button>
                        </td>
                        </tbody>
                        <tbody>
                        <td>02</td>
                        <td>106</td>
                        <td>南区</td>
                        <td>李望山</td>
                        <td>座椅缺失</td>
                        <td><a>查看照片</a></td>
                        <td>处理完成</td>
                        <td>
                            <button type="button" class="btn btn-success btn-xs" data-toggle="modal"
                                    data-target="#findBackModal" >优先处理</button>
                            <button type="button" class="btn btn-danger btn-xs" data-toggle="modal"
                                    data-target="#findBackModal" >取消处理</button>
                        </td>
                        </tbody>
                    </table>


                </div>
            </div>
        </div>
<!--            <div class="row">-->
<!--                <div class="col-lg-12">-->
<!--                    <table id="data_list" class="table table-hover table-bordered" cellspacing="0" width="100%">-->
<!--                        <thead>-->
<!--                        <tr>-->
<!--                            <th>教室号</th>-->
<!--                            <th>教室区域</th>-->
<!--                            <th>报修用户</th>-->
<!--                            <th>报修内容</th>-->
<!--                            <th>报修照片</th>-->
<!--                            <th>操作</th>-->
<!--                        </tr>-->
<!--                        </thead>-->



<!--                        <tbody>-->
<!--                        <td>105</td>-->
<!--                        <td>南区</td>-->
<!--                        <td>张三</td>-->
<!--                        <td>灯泡坏了</td>-->
<!--                        <td><a>查看照片</a></td>-->
<!--                        <td>-->
<!--                            <button type="button" class="btn btn-success btn-xs" data-toggle="modal"-->
<!--                                    data-target="#findBackModal" >同意报修</button>-->
<!--                            <button type="button" class="btn btn-danger btn-xs" data-toggle="modal"-->
<!--                                    data-target="#findBackModal" >拒绝报修</button>-->

<!--                        </td>-->



<!--                    </table>-->


<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
    </div>
</div>


<!--------------------------------------查看的模糊框------------------------>
<form class="form-horizontal">   <!--保证样式水平不混乱-->
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="findBackModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        查看归还信息
                    </h4>
                </div>
                <div class="modal-body">

                    <!---------------------表单-------------------->
                    <div class="form-group">
                        <label  class="col-sm-3 control-label">借阅编号</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="borrowId" readonly="readonly" >

                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-3 control-label">借阅书籍ISBN号</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="ISBN" readonly="readonly" >

                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-3 control-label">借阅书籍名称</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="bookName" readonly="readonly" >

                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-sm-3 control-label">借阅书籍类型</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="bookType" readonly="readonly" >

                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-3 control-label">读者证件号</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="paperNO" readonly="readonly" >

                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-sm-3 control-label">读者名称</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="readerName" readonly="readonly" >

                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-3 control-label">读者类型</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="readerType" readonly="readonly" >

                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-3 control-label">逾期天数</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="overday" readonly="readonly" >

                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-3 control-label">归还状态</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="state" readonly="readonly">

                        </div>
                    </div>


                    <!---------------------表单-------------------->
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>

</form>




<form class="form-horizontal">   <!--保证样式水平不混乱-->
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="updatepwd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        修改密码
                    </h4>
                </div>

                <div class="modal-body">

                    <!--正文-->
                    <div class="form-group">
                        <label  class="col-sm-3 control-label">原密码</label>
                        <div class="col-sm-7">
                            <input type="password" class="form-control" id="oldPwd" placeholder="请输入原密码">
                            <label class="control-label" for="oldPwd" style="display: none"></label>
                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-3 control-label">新密码</label>
                        <div class="col-sm-7">
                            <input type="password" class="form-control" id="newPwd" placeholder="请输入新密码">
                            <label class="control-label" for="newPwd" style="display: none"></label>
                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-3 control-label">确认密码</label>
                        <div class="col-sm-7">
                            <input type="password" class="form-control" id="confirmPwd" placeholder="请输入确认密码">
                            <label class="control-label" for="confirmPwd" style="display: none"></label>
                        </div>
                    </div>
                    <!--正文-->


                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                    <button type="button" class="btn btn-primary" id="update_adminPwd">
                        修改
                    </button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>

</form>
<!-------------------------------------------------------------->


<!-------------------------个人资料模糊框------------------------------------->

<form class="form-horizontal">   <!--保证样式水平不混乱-->
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="updateinfo" tabindex="-1" role="dialog" aria-labelledby="ModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="ModalLabel">
                        个人资料
                    </h4>
                </div>

                <div class="modal-body">

                    <!--正文-->
                    <div class="form-group">
                        <label class="col-sm-3 control-label">用户名</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="username"
                                   th:value='${session.admin.username}'>
                            <label class="control-label" for="username" style="display: none;"></label>
                        </div>
                    </div>


                    <div class="form-group">
                        <label class="col-sm-3 control-label">真实姓名</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="name" placeholder="请输入您的真实姓名"
                                   th:value="${session.admin.name}">
                            <label class="control-label" for="name" style="display: none;"></label>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">联系号码</label>
                        <div class="col-sm-7">
                            <input type="text" class="form-control" id="phone" placeholder="请输入您的联系号码"
                                   th:value="${session.admin.phone}" >
                            <label class="control-label" for="phone" style="display: none;"></label>

                        </div>
                    </div>

                    <!--正文-->


                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                    <button type="button" class="btn btn-primary" id="admin_updateInfo">
                        修改
                    </button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>

</form>
<!-------------------------------------------------------------->


<div class="modal fade" id="modal_info" tabindex="-1" role="dialog" aria-labelledby="addModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="infoModalLabel">提示</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-lg-12" id="div_info"></div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" id="btn_info_close" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>


</body>
</html>
